package thread;

public class ThreadEx extends Thread{
	private int num;
	public void run(){
		while(num<50){
			System.out.println(Thread.currentThread().getName()+":"+num++);
			try {
				Thread.sleep(300);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
}
